<template>
    <view class="container">
        <view class="proxy-info">
            <view class="proxy-desc">
                <view class="proxy-title">代言人活动进行中</view>
                <view class="proxy-msg">邀请用户注册可享代言最高权益</view>
            </view>
            <view class="proxy-user">
                <view class="proxy-user-info">
                    <view class="proxy-user-label">邀请人数</view>
                    <view class="proxy-user-num">{{ inviteNum }}</view>
                </view>
                <view class="proxy-user-btn">
                    <u-icon
                        name="https://img.ionepin.com/4248e01c1b81f2f94c57a7811d721f9293792973.png"
                        width="36rpx"
                        height="28rpx"
                    ></u-icon>
                    <view class="btn-label" @click="$u.route('pages/agentTop/index')">查看排行榜</view>
                </view>
            </view>
        </view>
    </view>
</template>

<script>
    export default {
        name: "index",
        computed: {
            inviteNum() {
                return this.$store.getters.inviteNum
            }
        }
    }
</script>

<style lang="scss" scoped>
    .container {
        padding: 0 20rpx;
        .proxy-info {
            background: url("https://img.ionepin.com/5060fe127a80571743527544e68558e9a3735c91.png") no-repeat;
            background-size: 100% 100%;
            height: 130rpx;
            display: flex;
            justify-content: space-between;
            .proxy-desc {
                padding-top: 26rpx;
                padding-left: 30rpx;
                .proxy-title {
                    font-size: 30rpx;
                    font-weight: bold;
                    color: #FFFFFF;
                }
                .proxy-msg {
                    font-size: 22rpx;
                    font-weight: 400;
                    color: #E4E6FF;
                }
            }
        }
        .proxy-user {
            padding-right: 30rpx;
            padding-top: 15rpx;
            .proxy-user-info {
                display: flex;
                justify-content: center;
                .proxy-user-label {
                    font-size: 24rpx;
                    font-weight: 400;
                    color: #FFFFFF;
                    margin-right: 9rpx;
                    line-height: 1.8;
                }
                .proxy-user-num {
                    font-size: 32rpx;
                    font-weight: bold;
                    color: #FFFFFF;
                    line-height: 45rpx;
                }
            }
        }
        .proxy-user-btn {
            display: flex;
            align-content: center;
            align-items: center;
            justify-content: center;
            width: 208rpx;
            height: 42rpx;
            background: #FFFFFF;
            box-shadow: 0 4rpx 8rpx 0 rgba(125, 143, 241, 0.4);
            border-radius: 24rpx;
            .btn-label {
                font-size: 24rpx;
                font-weight: 400;
                color: #356CE7;
                margin-left: 5rpx;
                line-height: 33rpx;
            }
        }
    }
</style>
